Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WarpX class: move ReorderFornbergCoefficients from WarpX.H to WarpX.cpp #5578

Conversation

lucafedeli88
Copy link
Member

ReorderFornbergCoefficients is a pure function only used inside WarpX.cpp. Therefore, this PR moves it to an anonymous namespace inside WarpX.cpp (now it is a member function of the WarpX class).

The final goal is to simplify the WarpX header.

@lucafedeli88 lucafedeli88 added the cleaning Clean code, improve readability label Jan 20, 2025
@lucafedeli88 lucafedeli88 requested a review from EZoni January 20, 2025 14:36
Copy link
Member

@EZoni EZoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @lucafedeli88. Looks good to me. I left a style suggestion, feel free to commit if you're okay with the changes.

Source/WarpX.cpp Outdated Show resolved Hide resolved
Source/WarpX.cpp Outdated Show resolved Hide resolved
Source/WarpX.cpp Outdated Show resolved Hide resolved
@EZoni EZoni self-assigned this Jan 21, 2025
lucafedeli88 and others added 3 commits January 22, 2025 09:43
Co-authored-by: Edoardo Zoni <[email protected]>
Co-authored-by: Edoardo Zoni <[email protected]>
Co-authored-by: Edoardo Zoni <[email protected]>
@lucafedeli88 lucafedeli88 requested a review from EZoni January 22, 2025 15:39
@EZoni EZoni merged commit d5f9b57 into ECP-WarpX:development Jan 22, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleaning Clean code, improve readability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants